package sample.constructors;


abstract class Glyph{
	abstract void draw();
	
	Glyph(){
		System.out.println("Glyph() before draw()");
		draw();
		System.out.println("Glyph() after draw()");
	}
}

class RoundGlyph extends Glyph{
	int radius=1;
	RoundGlyph(int r){
		this.radius=r;
		System.out.println("RoundGlyph.RoundGlyph(),radius="+this.radius);
	}
	@Override
	void draw() {
		System.out.println("RoundGlyph.draw()="+radius);
		
	}
	
}

public class PloyConstrutors {

	public static void main(String[]args){
		new RoundGlyph(5);
	}
}
